<?php
error_reporting(0);
session_start();
if(!session_id())session_start();
ob_start();
if( isset( $_SESSION['user'] ) ){
}else{
    echo("<script type='text/javascript'>alert('请先登录！');window.location.href='./index.php';</script>");
}
include "../config.php";

$dingid = $_POST[dingdan];
$wuliu = $_POST[wuliu];
$wuliu2 = $_POST[wuliu2];
$wuliu3 = $_POST[wuliu3];
$wuliu4 = $_POST[wuliu4];
$wuliu5 = $_POST[wuliu5];
$wuliu6 = $_POST[wuliu6];
$wuliu7 = $_POST[wuliu7];

$sql="insert into dingdan (`dingid`,`wuliu`,`wuliu2`,`wuliu3`,`wuliu4`,`wuliu5`,`wuliu6`,`wuliu7`) values ('$dingid','$wuliu','$wuliu2','$wuliu3','$wuliu4','$wuliu5','$wuliu6','$wuliu7')";
$jieguo=$conn->query($sql);
if($jieguo){
    echo "<script language='javascript'>window.location.href='./list.php';</script>";
}else{
    echo "<script language='javascript'>alert('报告老大，添加失败！');history.go(-1);</script>";
}
?>

